const query = require('../mysql');      //这个是封装的查询数据库的方法

async function getShiciList(ctx) {
    let resParams = ctx.query;
    let sql = 'select * from shici';
    let list = await query(sql);
    let json = {
        success:true,
        data:list,
		query:resParams
    };
    ctx.response.body = json;
}
module.exports={
    getShiciList
}